package cn.mesmile.es.common;

/**
 * @author zb
 * @date 2021/5/6 9:51
 * @Description
 */
public enum CustomCode implements IResultCode{

    /**
     * 返回状态码，以及返回消息
     */
    SUCCESS(200, "成功");



    private final String message;

    private final int code;

    CustomCode(int code, String message){
        this.code = code;
        this.message = message;
    }

    @Override
    public String getMessage() {
        return this.message;
    }

    @Override
    public int getCode() {
        return this.code;
    }
}
